import request from '@/utils/request'

// 应用权限列表
export function getApplyList(query) {
  return request({
      url: '/application/setting/list',
      method: 'get',
      params: query
  })
}

// 应用权限详情
export function getApplyDetail(query) {
  return request({
      url: '/application/setting/detail',
      method: 'get',
      params: query
  })
}

// 新增应用权限
export function addApply(data) {
  return request({
      url: '/application/setting/add',
      method: 'post',
      data
  })
}

// 编辑应用权限
export function updateApply(data) {
  return request({
      url: '/application/setting/update',
      method: 'post',
      data
  })
}

// 应用开通详情列表
export function openingDetailsList(query) {
  return request({
    url: '/application/setting/auth/list',
    method: 'get',
    params: query
  })
}
